//
//  ZMNetworking.h
//  dudu_oc_master
//
//  Created by mac on 2019/11/19.
//  Copyright © 2019 Shawn Ma. All rights reserved.
//


#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface TJButtonBarButton : UIButton

+ (instancetype)barButtonWithTarget:(nullable id)target action:(nullable SEL)action;
+ (instancetype)barButtonWithImageName:(nullable NSString *)imageName target:(nullable id)target action:(nullable SEL)action;
+ (instancetype)barButtonWithTitle:(nullable NSString *)title color:(nullable UIColor *)color target:(nullable id)target action:(nullable SEL)action;
+ (instancetype)barButtonWithTitle:(nullable NSString *)title target:(nullable id)target action:(nullable SEL)action;
+ (instancetype)barButtonBackButtonTarget:(nullable id)target action:(nullable SEL)action;
+ (instancetype)barButtonBackButtonImageName:(NSString *)imageName target:(nullable id)target action:(nullable SEL)action;

@end

@interface TJNavigationBar : UIView

@property (strong, nonatomic) TJButtonBarButton *leftBarButton;
@property (strong, nonatomic) TJButtonBarButton *rightBarButton;
 
@property (strong, nonatomic) NSArray <TJButtonBarButton *>*leftBarButtons;
@property (strong, nonatomic) NSArray <TJButtonBarButton *>*rightBarButtons;
@property (strong, nonatomic) UIView *titleView;
@property (strong, nonatomic) UIView *rightBarView;
@property (strong, nonatomic) UIColor *titleTextColor;
@property (strong, nonatomic) NSDictionary *titleTextAttributes;
@property (strong, nonatomic) UIImage *backgroundImage;
@property (strong, nonatomic) UIColor *barTintColorColor;
@property (assign, nonatomic) BOOL hiddenBackButton;
@property (strong, nonatomic) UIView *lineView;
@property (strong, nonatomic, readonly) TJButtonBarButton *backBarButton;

@property (copy, nonatomic) NSString *title;

- (void)addSubviewToContentView:(UIView *)view;

- (void)backBarButtonWhiteColor;
- (void)backBarButtonBlackColor;

@end

NS_ASSUME_NONNULL_END
